package com.taxi.remote;

import com.taxi.response.AroundsearchResponse;
import com.taxi.response.TerminalResponse;
import com.taxi.response.TrsearchResponse;
import com.taxi.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: aniu
 * @Date: 2023/10/6
 * @ClassName: ServiceMapClient
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@FeignClient("service-map")
public interface ServiceMapClient {

    @PostMapping("/terminal/aroundsearch")
    public Result<List<TerminalResponse>> aroundsearch(@RequestBody AroundsearchResponse aroundsearchResponse);

    @PostMapping("/terminal/trsearch")
    public Result<TrsearchResponse> trsearch(@RequestParam String tid,@RequestParam Long starttime,@RequestParam Long endtime);
}
